<template>
 <div>
   <el-table v-loading="loading" :data="infoList" @selection-change="handleSelectionChange">
    <el-table-column type="index" width="55" align="center"  label="序号"/>
    <el-table-column label="健康检查类型" align="center" prop="examType"/>
    <el-table-column label="人员名称" align="center" prop="personnelName" />
    <el-table-column label="身份证号" align="center" prop="identityNumber" />
    <el-table-column label="提醒类型" align="center" prop="remindType" />
    <el-table-column label="操作" align="center" class-name="small-padding fixed-width" >
      <template slot-scope="scope">
        <!-- <el-button
          size="mini"
          type="text"
          @click="handleInfo(scope.row)"
          v-if="scope.row.E == 0"
        >上传结果</el-button>
        <el-button
          size="mini"
          type="text"
          @click="handleInfo(scope.row)"
          v-if="scope.row.E == 2"
        >已报送</el-button> -->
        <el-button
          size="mini"
          type="text"
          @click="handleInfo(scope.row)"
         
        >处置</el-button>
      </template>
    </el-table-column>
  </el-table>

  <!--<pagination
    v-show="total>0"
    :total="total"
    :page.sync="queryParams.pageNum"
    :limit.sync="queryParams.pageSize"
    @pagination="getList"
  />
-->
 </div>
</template>

<script>
import {report} from '@/api/radiation/todu.js'

export default {
  name: 'xzchTable',
  data() {
    return {
      // 遮罩层
      loading: false,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 一企一档表格数据
      infoList: [
        {
          A:"职业卫生管理状况自查",
          B:"自查内容超时上传",
          C: "待处置",
          D:"2024-08-12 12:00:00",
          E:"0"
        },
        {
          A:"职业病危害综合风险评估报告上报",
          B:"上报时间超时",
          C: "待处置",
          D:"2024-08-12 12:00:00",
          E:"2"
        },
        {
          A:"接害人员健康检查上报",
          B:"公司有四位接害人员健康检查超时未上报",
          C: "待处置",
          D:"2024-08-12 12:00:00",
          E:"1"
        },
        {
          A:"上报职业病诊断报告信息",
          B:"公司有四位人员职业病诊断报告超时未上报",
          C: "待处置",
          D:"2024-08-12 12:00:00",
          E:"1"
        },

      ],
      // 查询参数
      queryParams: {

      },
      // 表单参数
    };
  },
  /*props: {
    editVisible: {
      type: Boolean,
      default: () => {
        return false
      }
    }
  },
  watch:{

  },
  computed: {
    show: {
      get () {
        return this.editVisible
      },
      set (val) {
        this.$emit('update:editVisible', val)
      }
    },
  },*/
  methods :{
    handleInfo(row) {

     //  alert("待做")
    },
    handleSelectionChange(val){

    },
    async getList(){
    this.loading = true;
    let res =  await report()
    console.log(res,'report');
    this.infoList = res.rows
    this.total = res.total
    
    
      this.loading = false;
    }
    
  },
  mounted() {
    this.getList()
  }

}
</script>

<style>

</style>
